/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"A8DED591-6865-43B5-817D-3DED4248B90B"}
 */
function inicio(firstShow, event) {
	//forms.ordenes_de_servicio_fletero.controller.loadRecords(forms.fleteros_det.fletero_to_ord_de_serv )

	/*controller.find()
	estado=1
	controller.search()
	
	var estado = fletero_to_ord_de_serv.find()
	if (estado == false)
	{
		globals.gMensaje = 'Error al buscar ordenes de servicio '
	   	globals.gMensajes()
	}
	fletero_to_ord_de_serv.estado=1
	fletero_to_ord_de_serv.search()
	*/
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"38034279-106A-4DD9-A0D6-565A9DA9CFA2"}
 */
function anular(event) {
	application.showFormInDialog(forms.ordenes_de_servicio_anular,300,100,700,500,"Anulación Orden de Servicio",true,false,'ord_serv_anul',true)
}

/**
 * Handle record selected.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"812E71B0-D559-4B74-B252-DCE635B5A7C1"}
 */
function onRecordSelection(event) {
	forms.ordenes_de_servicio_anular.controller.loadRecords(forms.fleteros_det.proveedor_to_ordenes_de_servicio_pendientes )
}
